<?php

class Front_ApplicationSingleton {
    private $script = "
        function FrontApplicationSingleton(){
            if(FrontStartApplicationSingleton.instance){
                return FrontStartApplicationSingleton.instance;
            }
            this.isStarted = false;
            FrontStartApplicationSingleton.instance = this;
        }
        FrontApplicationSingleton.prototype.start = function(){
            if( !this.isStarted ) return false;

            this.isStarted = true;
        }
    ";
}